/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aptech.business;

import com.aptech.domain.JPA.Account;
import com.aptech.domain.JPA.EventRequest;
import com.aptech.domain.model.AccountDO;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpSession;
import org.springframework.security.core.userdetails.User;

/**
 *
 * @author Admin
 */
public interface IAccountManager {
    public List<AccountDO> getAllAccount() throws Exception;
    public Account saveAccount(Account account) throws Exception;
    public boolean isUsernameExist(String username);
    public AccountDO getAccountByUsername(String username);
    public User getPrincipal(HttpSession session);
    public int getAccountId(String username);
    public Set<EventRequest> getEventRequestByUsername(String username);
    public List<Account> getAccount();
    public AccountDO getCurLoginAcc();
}
